package com.example.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "collect")
@Data
public class Collect {
    @Id
    private Integer collectId;             //收藏表id

    @Column(name = "treeId")
    private int treeId;                 //树苗id

    @Column(name = "treename")
    private String treename;            //树苗名称

    @Column(name = "shopper")
    private String shopper;             //商家名称

    @Column(name = "username")
    private String username;            //收藏人名称

    @Column(name = "treetypeid")
    private int treetypeid;             //树苗种类id

    @Column(name = "collecttime")
    private String collecttime;          //收藏时间

    public Collect(Integer collectId, int treeId, String treename, String shopper, String username, int treetypeid, String collecttime) {
        this.collectId = collectId;
        this.treeId = treeId;
        this.treename = treename;
        this.shopper = shopper;
        this.username = username;
        this.treetypeid = treetypeid;
        this.collecttime = collecttime;
    }

    public Collect() {
    }
}
